$(function () {
   $('#logout').on('click',function () {
       $.get('/admin_logout',(res)=>{
         console.log(res);
        if(res.code == 200){
          location.href = '/admin/login';
        }
       });
   });

});